﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 炒菜
{
    public enum foods
    {
        西红柿炒圣女果,
        马铃薯炒土豆,
        榴莲堡鸡
    }
    class CookRobot: Robot
    {
        public foods foods { get; set; }
        public CookRobot(String name, foods food) : base(name)
        {
            this.foods = food;
        }
        public override void Working()
        {
            Console.WriteLine("我是炒菜机器人，我叫{0}，我炒的菜是{1}", this.Name, this.foods);
        }

    }
}
